@echo off
echo 0 = %~0
echo d0 = %~d0
echo p0 = %~p0
echo dp0 = %~dp0

cd /d %~dp0

for /F "delims=" %%a in ('dir .\*.obj /S /B')  do @del "%%a" /f /s /q
for /F "delims=" %%a in ('dir .\*.__i /S /B')  do @del "%%a" /f /s /q
for /F "delims=" %%a in ('dir .\*.B0* /S /B')  do @del "%%a" /f /s /q
for /F "delims=" %%a in ('dir .\*.B1* /S /B')  do @del "%%a" /f /s /q
for /F "delims=" %%a in ('dir .\*.H0* /S /B')  do @del "%%a" /f /s /q
for /F "delims=" %%a in ('dir .\*.H1* /S /B')  do @del "%%a" /f /s /q
for /F "delims=" %%a in ('dir .\*.lnp /S /B')  do @del "%%a" /f /s /q
for /F "delims=" %%a in ('dir .\*.plg /S /B')  do @del "%%a" /f /s /q
for /F "delims=" %%a in ('dir .\RL6432_Project /S /B')  do @del "%%a" /f /s /q
for /F "delims=" %%a in ('dir .\RL6193_Project /S /B')  do @del "%%a" /f /s /q
for /F "delims=" %%a in ('dir .\RTD_OSD_2556T_Series /S /B')  do @del "%%a" /f /s /q
for /F "delims=" %%a in ('dir .\KEC_OSD_2556T_Series /S /B')  do @del "%%a" /f /s /q
for /F "delims=" %%a in ('dir .\*.lnp /S /B')  do @del "%%a" /f /s /q
for /F "delims=" %%a in ('dir .\*.lst /S /B')  do @del "%%a" /f /s /q
for /F "delims=" %%a in ('dir .\RL6432_Project.LIB /S /B')  do @del "%%a" /f /s /q
for /F "delims=" %%a in ('dir .\RL6193_Project.LIB /S /B')  do @del "%%a" /f /s /q
for /F "delims=" %%a in ('dir .\RTD_OSD_2556T_Series.LIB /S /B')  do @del "%%a" /f /s /q
for /F "delims=" %%a in ('dir .\KEC_OSD_2556T_Series.LIB /S /B')  do @del "%%a" /f /s /q
for /F "delims=" %%a in ('dir .\*.__b /S /B')  do @del "%%a" /f /s /q


for /F "delims=" %%a in ('dir .\*.~h /S /B')  do @del "%%a" /f /s /q
for /F "delims=" %%a in ('dir .\*.~c /S /B')  do @del "%%a" /f /s /q
for /F "delims=" %%a in ('dir .\*.~a5 /S /B') do @del "%%a" /f /s /q
for /F "delims=" %%a in ('dir .\*.tmp /S /B') do @del "%%a" /f /s /q
for /F "delims=" %%a in ('dir .\*.bak /S /B') do @del "%%a" /f /s /q
for /F "delims=" %%a in ('dir .\*.opt /S /B') do @del "%%a" /f /s /q





echo
 